#include<iostream>
using namespace std;
#include<vector>
#include<string>
#include<queue>
int main()
{
	string s1, s2, sum;
	int tmp = 0;
	cin >> s1 >> s2;
	int begin1 = s1.size()-1;
	int begin2 = s2.size()-1;
	while (begin1 >= 0 || begin2 >= 0 || tmp)
	{
		if (begin1 >= 0)
		{
			tmp += s1[begin1--] - '0';
		}
		if (begin2 >= 0)
		{
			tmp += s2[begin2--] - '0';
		}

		sum.push_back(tmp % 10 + '0');
		tmp /= 10;
	}

	reverse(sum.begin(), sum.end());
	cout << sum << endl;
	return 0;
}